#pragma once

#include <string>

/**
 * @file DBConfig.h
 *
 * @brief Database config parameters
 *
 * @author cygia.com
 * Contact: lance.liao@cygia.com
 *
 */

typedef enum {
	IA_TAG_DB_SERVER_TYPE_SQLITE = 0,
	IA_TAG_DB_SERVER_TYPE_MYSQL,
	IA_TAG_DB_SERVER_TYPE_MSSQL
} EDBServerTypes;

class  CDBConfig
{
public:
	CDBConfig() 
	{
		ServerType = EDBServerTypes::IA_TAG_DB_SERVER_TYPE_SQLITE;
		ServerAddr = "localhost";
		ServerPort = 3306;
		DBName = "ia_db";
		UserName = "root";
		Password = "root";
		Timeout = 10 * 1000;
	}

public:
	EDBServerTypes ServerType;
	std::string ServerAddr;
	int ServerPort;
	std::string DBName;
	std::string UserName;
	std::string Password;
	int Timeout;

private:

};